package studia.figlewicz.dao.ejb;

// Generated 2011-06-03 08:31:30 by Hibernate Tools 3.4.0.CR1

import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.JoinColumns;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * Pelnirole generated by hbm2java
 */
@Entity
@Table(name = "PELNIROLE", schema = "MARCIN")
public class Pelnirole implements java.io.Serializable {

	private PelniroleId id;
	private Model modelBySysC004105;
	private Model modelBySysC004106;
	private Model modelBySysC004107;

	public Pelnirole() {
	}

	public Pelnirole(PelniroleId id, Model modelBySysC004105,
			Model modelBySysC004106) {
		this.id = id;
		this.modelBySysC004105 = modelBySysC004105;
		this.modelBySysC004106 = modelBySysC004106;
	}

	public Pelnirole(PelniroleId id, Model modelBySysC004105,
			Model modelBySysC004106, Model modelBySysC004107) {
		this.id = id;
		this.modelBySysC004105 = modelBySysC004105;
		this.modelBySysC004106 = modelBySysC004106;
		this.modelBySysC004107 = modelBySysC004107;
	}

	@EmbeddedId
	@AttributeOverrides({
			@AttributeOverride(name = "nazwamodelunadrzednego", column = @Column(name = "NAZWAMODELUNADRZEDNEGO", nullable = false, length = 50)),
			@AttributeOverride(name = "numerwersjimodelunadrzednego", column = @Column(name = "NUMERWERSJIMODELUNADRZEDNEGO", nullable = false, precision = 22, scale = 0)),
			@AttributeOverride(name = "nazwamodelupodrzednego", column = @Column(name = "NAZWAMODELUPODRZEDNEGO", nullable = false, length = 50)),
			@AttributeOverride(name = "numerwersjimodelupodrzednego", column = @Column(name = "NUMERWERSJIMODELUPODRZEDNEGO", nullable = false, precision = 22, scale = 0)),
			@AttributeOverride(name = "nazwaroli", column = @Column(name = "NAZWAROLI", nullable = false, length = 50)) })
	public PelniroleId getId() {
		return this.id;
	}

	public void setId(PelniroleId id) {
		this.id = id;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumns({
			@JoinColumn(name = "NAZWAMODELUNADRZEDNEGO", referencedColumnName = "NAZWA", nullable = false, insertable = false, updatable = false),
			@JoinColumn(name = "NUMERWERSJIMODELUNADRZEDNEGO", referencedColumnName = "NUMERWERSJI", nullable = false, insertable = false, updatable = false) })
	public Model getModelBySysC004105() {
		return this.modelBySysC004105;
	}

	public void setModelBySysC004105(Model modelBySysC004105) {
		this.modelBySysC004105 = modelBySysC004105;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumns({
			@JoinColumn(name = "NAZWAMODELUPODRZEDNEGO", referencedColumnName = "NAZWA", nullable = false, insertable = false, updatable = false),
			@JoinColumn(name = "NUMERWERSJIMODELUPODRZEDNEGO", referencedColumnName = "NUMERWERSJI", nullable = false, insertable = false, updatable = false) })
	public Model getModelBySysC004106() {
		return this.modelBySysC004106;
	}

	public void setModelBySysC004106(Model modelBySysC004106) {
		this.modelBySysC004106 = modelBySysC004106;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumns({
			@JoinColumn(name = "NAZWAMODELUKOMPLETNEGO", referencedColumnName = "NAZWA"),
			@JoinColumn(name = "NUMERWERSJIMODELUKOMPLETNEGO", referencedColumnName = "NUMERWERSJI") })
	public Model getModelBySysC004107() {
		return this.modelBySysC004107;
	}

	public void setModelBySysC004107(Model modelBySysC004107) {
		this.modelBySysC004107 = modelBySysC004107;
	}

}
